This doesn't have to be a prompt-dialog, so remove the css class, also
the MessageDialogContent doesn't need the x and y_expand properties, so
remove those, too.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/942
var DisplayChangeDialog = GObject.registerClass(
class DisplayChangeDialog extends ModalDialog.ModalDialog {
_init(wm) {
- super._init({ styleClass: 'prompt-dialog' });
+ super._init();
this._wm = wm;
let title = _("Do you want to keep these display settings?");
let description = this._formatCountDown();
- this._content = new Dialog.MessageDialogContent({
- title, description,
- x_expand: true,
- y_expand: true,
- });
-
+ this._content = new Dialog.MessageDialogContent({ title, description });
this.contentLayout.add_child(this._content);
/* Translators: this and the following message should be limited in length,